﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace DavidDB
{
    public class CommonObj
    {
        public CommonObj()
        {
            Type t = this.GetType();
            PropertyInfo[] properties = t.GetProperties();
            foreach (PropertyInfo p in properties)
            {
                string PType = p.PropertyType.ToString();
                if (PType.Equals("System.Int32") || PType.Equals("System.Double"))
                {
                    p.SetValue(this, int.MinValue, null);
                }
            }
        }
    }
}
